/*!
\copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.
            All Rights Reserved.
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file       streaming_statistics_utils.h
*/

#ifndef STREAMING_STATISTICS_UTILS_H
#define STREAMING_STATISTICS_UTILS_H

#include "vm/vm_if.h"
#include "vm.h"
#include <stdint.h>
#include "audio_sources.h"

#define STREAMING_RTP_HEADER_SIZE (uint32_t)12
#define STREAMING_MICROSECONDS_IN_SECOND 1000000
#define KBIT_IN_MBIT                     (1000)

bool StreamingStatistics_HasLosslessIndicator(uint32_t ssrc);
bool StreamingStatistics_IsA2dpAdaptive(uint8_t seid);
bool StreamingStatistics_GetCisRssi(int16_t *rssi);
bool StreamingStatistics_CalculateBitrate(const vm_transform_query_bitrate_t prev_bitrate_info,
                                          const vm_transform_query_bitrate_t new_bitrate_info,
                                          uint32_t *bitrate);
uint16_t StreamingStatistics_GetBitrateFactor(void);
bool StreamingStatistics_GetTpAddressFromAudioSource(audio_source_t audio_source, tp_bdaddr *tpaddr);

#endif
